Optimal. Leaf size=267 \[ \frac {2 (a+b) \coth (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a^2 f}-\frac {\coth (e+f x) \text {csch}^2(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a f}+\frac {2 (a+b) E\left (\text {ArcTan}(\sinh (e+f x))\left |1-\frac {b}{a}\right .\right ) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a^2 f \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}-\frac {b F\left (\text {ArcTan}(\sinh (e+f x))\left |1-\frac {b}{a}\right .\right ) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a^2 f \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}-\frac {2 (a+b) \sqrt {a+b \sinh ^2(e+f x)} \tanh (e+f x)}{3 a^2 f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.20, antiderivative size = 267, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 7, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.280, Rules used = {3267, 491, 597,
545, 429, 506, 422} \begin {gather*} -\frac {b \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)} F\left (\text {ArcTan}(\sinh (e+f x))\left |1-\frac {b}{a}\right .\right )}{3 a^2 f \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}+\frac {2 (a+b) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)} E\left (\text {ArcTan}(\sinh (e+f x))\left |1-\frac {b}{a}\right .\right )}{3 a^2 f \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}-\frac {2 (a+b) \tanh (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a^2 f}+\frac {2 (a+b) \coth (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a^2 f}-\frac {\coth (e+f x) \text {csch}^2(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 422
Rule 429
Rule 491
Rule 506
Rule 545
Rule 597
Rule 3267
Rubi steps
\begin {align*} \int \frac {\text {csch}^4(e+f x)}{\sqrt {a+b \sinh ^2(e+f x)}} \, dx &=\frac {\left (\sqrt {\cosh ^2(e+f x)} \text {sech}(e+f x)\right ) \text {Subst}\left (\int \frac {1}{x^4 \sqrt {1+x^2} \sqrt {a+b x^2}} \, dx,x,\sinh (e+f x)\right )}{f}\\ &=-\frac {\coth (e+f x) \text {csch}^2(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a f}+\frac {\left (\sqrt {\cosh ^2(e+f x)} \text {sech}(e+f x)\right ) \text {Subst}\left (\int \frac {-2 (a+b)-b x^2}{x^2 \sqrt {1+x^2} \sqrt {a+b x^2}} \, dx,x,\sinh (e+f x)\right )}{3 a f}\\ &=\frac {2 (a+b) \coth (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a^2 f}-\frac {\coth (e+f x) \text {csch}^2(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a f}-\frac {\left (\sqrt {\cosh ^2(e+f x)} \text {sech}(e+f x)\right ) \text {Subst}\left (\int \frac {a b+2 b (a+b) x^2}{\sqrt {1+x^2} \sqrt {a+b x^2}} \, dx,x,\sinh (e+f x)\right )}{3 a^2 f}\\ &=\frac {2 (a+b) \coth (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a^2 f}-\frac {\coth (e+f x) \text {csch}^2(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a f}-\frac {\left (b \sqrt {\cosh ^2(e+f x)} \text {sech}(e+f x)\right ) \text {Subst}\left (\int \frac {1}{\sqrt {1+x^2} \sqrt {a+b x^2}} \, dx,x,\sinh (e+f x)\right )}{3 a f}-\frac {\left (2 b (a+b) \sqrt {\cosh ^2(e+f x)} \text {sech}(e+f x)\right ) \text {Subst}\left (\int \frac {x^2}{\sqrt {1+x^2} \sqrt {a+b x^2}} \, dx,x,\sinh (e+f x)\right )}{3 a^2 f}\\ &=\frac {2 (a+b) \coth (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a^2 f}-\frac {\coth (e+f x) \text {csch}^2(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a f}-\frac {b F\left (\tan ^{-1}(\sinh (e+f x))|1-\frac {b}{a}\right ) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a^2 f \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}-\frac {2 (a+b) \sqrt {a+b \sinh ^2(e+f x)} \tanh (e+f x)}{3 a^2 f}+\frac {\left (2 (a+b) \sqrt {\cosh ^2(e+f x)} \text {sech}(e+f x)\right ) \text {Subst}\left (\int \frac {\sqrt {a+b x^2}}{\left (1+x^2\right )^{3/2}} \, dx,x,\sinh (e+f x)\right )}{3 a^2 f}\\ &=\frac {2 (a+b) \coth (e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a^2 f}-\frac {\coth (e+f x) \text {csch}^2(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a f}+\frac {2 (a+b) E\left (\tan ^{-1}(\sinh (e+f x))|1-\frac {b}{a}\right ) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a^2 f \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}-\frac {b F\left (\tan ^{-1}(\sinh (e+f x))|1-\frac {b}{a}\right ) \text {sech}(e+f x) \sqrt {a+b \sinh ^2(e+f x)}}{3 a^2 f \sqrt {\frac {\text {sech}^2(e+f x) \left (a+b \sinh ^2(e+f x)\right )}{a}}}-\frac {2 (a+b) \sqrt {a+b \sinh ^2(e+f x)} \tanh (e+f x)}{3 a^2 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 2.39, size = 201, normalized size = 0.75 \begin {gather*} \frac {\frac {\left (-8 a^2+a b+3 b^2+\left (4 a^2-2 a b-4 b^2\right ) \cosh (2 (e+f x))+b (a+b) \cosh (4 (e+f x))\right ) \coth (e+f x) \text {csch}^2(e+f x)}{\sqrt {2}}+4 i a (a+b) \sqrt {\frac {2 a-b+b \cosh (2 (e+f x))}{a}} E\left (i (e+f x)\left |\frac {b}{a}\right .\right )-2 i a (2 a+b) \sqrt {\frac {2 a-b+b \cosh (2 (e+f x))}{a}} F\left (i (e+f x)\left |\frac {b}{a}\right .\right )}{6 a^2 f \sqrt {2 a-b+b \cosh (2 (e+f x))}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 2.08, size = 456, normalized size = 1.71
method | result | size |
default | \(\frac {2 \sqrt {-\frac {b}{a}}\, a b \left (\sinh ^{6}\left (f x +e \right )\right )+2 \sqrt {-\frac {b}{a}}\, b^{2} \left (\sinh ^{6}\left (f x +e \right )\right )+b \sqrt {\frac {a +b \left (\sinh ^{2}\left (f x +e \right )\right )}{a}}\, \sqrt {\frac {\cosh \left (2 f x +2 e \right )}{2}+\frac {1}{2}}\, \EllipticF \left (\sinh \left (f x +e \right ) \sqrt {-\frac {b}{a}}, \sqrt {\frac {a}{b}}\right ) a \left (\sinh ^{3}\left (f x +e \right )\right )+2 \sqrt {\frac {a +b \left (\sinh ^{2}\left (f x +e \right )\right )}{a}}\, \sqrt {\frac {\cosh \left (2 f x +2 e \right )}{2}+\frac {1}{2}}\, \EllipticF \left (\sinh \left (f x +e \right ) \sqrt {-\frac {b}{a}}, \sqrt {\frac {a}{b}}\right ) b^{2} \left (\sinh ^{3}\left (f x +e \right )\right )-2 \sqrt {\frac {a +b \left (\sinh ^{2}\left (f x +e \right )\right )}{a}}\, \sqrt {\frac {\cosh \left (2 f x +2 e \right )}{2}+\frac {1}{2}}\, \EllipticE \left (\sinh \left (f x +e \right ) \sqrt {-\frac {b}{a}}, \sqrt {\frac {a}{b}}\right ) a b \left (\sinh ^{3}\left (f x +e \right )\right )-2 \sqrt {\frac {a +b \left (\sinh ^{2}\left (f x +e \right )\right )}{a}}\, \sqrt {\frac {\cosh \left (2 f x +2 e \right )}{2}+\frac {1}{2}}\, \EllipticE \left (\sinh \left (f x +e \right ) \sqrt {-\frac {b}{a}}, \sqrt {\frac {a}{b}}\right ) b^{2} \left (\sinh ^{3}\left (f x +e \right )\right )+2 \sqrt {-\frac {b}{a}}\, a^{2} \left (\sinh ^{4}\left (f x +e \right )\right )+3 \sqrt {-\frac {b}{a}}\, a b \left (\sinh ^{4}\left (f x +e \right )\right )+2 \sqrt {-\frac {b}{a}}\, b^{2} \left (\sinh ^{4}\left (f x +e \right )\right )+\sqrt {-\frac {b}{a}}\, a^{2} \left (\sinh ^{2}\left (f x +e \right )\right )+\sqrt {-\frac {b}{a}}\, a b \left (\sinh ^{2}\left (f x +e \right )\right )-\sqrt {-\frac {b}{a}}\, a^{2}}{3 a^{2} \sinh \left (f x +e \right )^{3} \sqrt {-\frac {b}{a}}\, \cosh \left (f x +e \right ) \sqrt {a +b \left (\sinh ^{2}\left (f x +e \right )\right )}\, f}\) | \(456\) |
risch | \(\text {Expression too large to display}\) | \(122054\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 2131 vs.
\(2 (271) = 542\).
time = 0.19, size = 2131, normalized size = 7.98 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\operatorname {csch}^{4}{\left (e + f x \right )}}{\sqrt {a + b \sinh ^{2}{\left (e + f x \right )}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 1118 vs.
\(2 (271) = 542\).
time = 1.28, size = 1118, normalized size = 4.19 \begin {gather*} \frac {{\left (\frac {3 \, {\left (a + b\right )} \arctan \left (-\frac {\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b} - \sqrt {b}}{2 \, \sqrt {-a}}\right ) e^{\left (-4 \, e\right )}}{\sqrt {-a} a} - \frac {2 \, {\left (3 \, {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )}^{5} a + 3 \, {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )}^{5} b - 15 \, {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )}^{4} a \sqrt {b} - 15 \, {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )}^{4} b^{\frac {3}{2}} - 32 \, {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )}^{3} a^{2} - 66 \, {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )}^{3} a b + 30 \, {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )}^{3} b^{2} - 96 \, {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )}^{2} a^{2} \sqrt {b} + 162 \, {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )}^{2} a b^{\frac {3}{2}} - 30 \, {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )}^{2} b^{\frac {5}{2}} - 48 \, {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )} a^{3} + 240 \, {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )} a^{2} b - 81 \, {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )} a b^{2} + 15 \, {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )} b^{3} + 48 \, a^{3} \sqrt {b} + 16 \, a^{2} b^{\frac {3}{2}} - 3 \, a b^{\frac {5}{2}} - 3 \, b^{\frac {7}{2}}\right )} e^{\left (-4 \, e\right )}}{{\left ({\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )}^{2} - 2 \, {\left (\sqrt {b} e^{\left (2 \, f x + 2 \, e\right )} - \sqrt {b e^{\left (4 \, f x + 4 \, e\right )} + 4 \, a e^{\left (2 \, f x + 2 \, e\right )} - 2 \, b e^{\left (2 \, f x + 2 \, e\right )} + b}\right )} \sqrt {b} - 4 \, a + b\right )}^{3} a}\right )} e^{\left (5 \, e\right )}}{3 \, f^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {1}{{\mathrm {sinh}\left (e+f\,x\right )}^4\,\sqrt {b\,{\mathrm {sinh}\left (e+f\,x\right )}^2+a}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________